package com.openbravo.pos.scripting;

import bsh.EvalError;
import bsh.Interpreter;

class ScriptEngineBeanshell
  implements ScriptEngine
{
  private Interpreter i = new Interpreter();

  public void put(String paramString, Object paramObject)
  {
    try
    {
      this.i.set(paramString, paramObject);
    }
    catch (EvalError localEvalError)
    {
    	//throw localEvalError;
    }
  }

  public Object get(String paramString)
  {
    try
    {
      return this.i.get(paramString);
    }
    catch (EvalError localEvalError)
    {
    }
    return null;
  }

  public Object eval(String paramString)
    throws ScriptException
  {
	  
	//   JXTaskPaneContainer
    try
    {
      return this.i.eval(paramString);
    }
    catch (EvalError localEvalError)
    {  throw new ScriptException(localEvalError.getMessage(), localEvalError);
    }
  
  }
}

/* Location:           D:\PowerFulPOS-2.30.2\openbravopos.jar
 * Qualified Name:     com.openbravo.pos.scripting.ScriptEngineBeanshell
 * JD-Core Version:    0.6.0
 */